package com.numberma.userservice.Utils;

import java.util.regex.Pattern;

//AI生成
public class CheckPhoneUtil {
    public static boolean checkPhone(String phone) {
     if (phone == null || phone.trim().isEmpty()) {
         return false;}
    String rule = "^(?:(?:\\+|00)86)?1[3-9]\\d{9}$";
    return Pattern.compile(rule).matcher(phone).matches();}
}
